import 'package:flutter/widgets.dart';

class ScalableLexicalItemText extends StatelessWidget {
  const ScalableLexicalItemText({
    required this.text,
    required this.style,
    required this.maxLines,
    super.key,
  });

  final String text;
  final TextStyle style;
  final int maxLines;

  @override
  Widget build(BuildContext context) {
    return Text(
      text,
      style: style,
      overflow: TextOverflow.ellipsis,
      maxLines: maxLines,
      textAlign: TextAlign.center,
    );
  }
}
